import React, { Component } from 'react';
import { Redirect } from 'react-router-dom';

import StorageUtil from '../util/StorageUtil'

export default class Home extends Component {
    // constructor(props){
    //     super(props);
    //     console.log(props.location.pathname);
    //     console.log(JSON.parse(localStorage.getItem("mspa_user")).username);
    // }





    render() {
        return (
            StorageUtil.isLogin() ? <Redirect to="/app" /> : <Redirect to="/login" /> 
        )
    }
}